package com.vasthu.api.domain;

import com.vasthu.gui.VstTableItemSelectable;
import java.util.*;

public class Item implements VstTableItemSelectable {

    private long itemId;
    private String itemCode;
    private String itemName;
    private String itemDesc;
    private String itemBrand;
    private long itemCategoryId; //FK of Category

    public Item() {
    }

    public long getItemId() {
        return itemId;
    }

    public String getItemCode() {
        return itemCode;
    }

    public String getItemName() {
        return itemName;
    }

    public String getItemDesc() {
        return itemDesc;
    }

    public String getItemBrand() {
        return itemBrand;
    }

    public long getItemCategoryId() {
        return itemCategoryId;
    }

    public void setItemId(long itemId) {
        this.itemId = itemId;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public void setItemDesc(String itemDesc) {
        this.itemDesc = itemDesc;
    }

    public void setItemBrand(String itemBrand) {
        this.itemBrand = itemBrand;
    }

    public void setItemCategoryId(long itemCategoryId) {
        this.itemCategoryId = itemCategoryId;
    }

    public Object getValue(int col) {
        switch (col) {
            case 0:
                return getItemCode();
            case 1:
                return getItemName();
            case 2:
                return getItemDesc();
            case 3:
                return getItemBrand();
            case 4:
                return getItemCategoryId();
            default:
                return new String("");
        }
    }
}